public class Test{
    public static void main(String[] args) {
        Tciket tciket = new Tciket();
        Synchronized_ synchronized_ = new Synchronized_(tciket);
        Thread thread1 = new Thread(synchronized_,"app");
        Thread thread2 = new Thread(synchronized_,"branch");
        Thread thread3 = new Thread(synchronized_,"vending machine");

        thread1.start();
        thread2.start();
        thread3.start();

    }
}
